package mse.eai.esb;

import org.jboss.logging.Logger;
import org.jboss.soa.esb.actions.ActionLifecycle;
import org.jboss.soa.esb.actions.ActionLifecycleException;
import org.jboss.soa.esb.helpers.ConfigTree;
import org.jboss.soa.esb.message.Body;
import org.jboss.soa.esb.message.Message;

public class PrepareCallIWalletMakeMovement implements ActionLifecycle {

	private static final Logger log = Logger
			.getLogger(PrepareCallIWalletMakeMovement.class);

	@Override
	public void destroy() throws ActionLifecycleException {
		// TODO Auto-generated method stub

	}

	@Override
	public void initialise() throws ActionLifecycleException {
		// TODO Auto-generated method stub

	}

	public PrepareCallIWalletMakeMovement(ConfigTree config) {

	}

	public Message process(Message m) {
		log.info("ESB Action start ------>");

		log.info("Preparing the call");
		/*
		 * HashMap fromJBPMMap = (HashMap)m.getBody().get();
		 * 
		 * m.getBody().add(//"debitLinden") HashMap requestMap = new HashMap();
		 * requestMap.put("checkOperation.uid", fromJBPMMap.get("uid"));
		 * requestMap.put("checkOperation.amount", fromJBPMMap.get("amount"));
		 * 
		 * m.getBody().add(requestMap);
		 */

		log.info("Done");

		log.info("<------- ESB Action done");
		return m;

	}
}
